package com.raos.example.mongo.morphia;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Id;

/**
 * 成员类 - mongo 测试实体类
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/8/29 21:25
 */
public class Member {

    @Id
    private ObjectId id;

    private String name;

    private Integer age;

    private String addr;

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    @Override
    public String toString() {
        return "Member{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", addr='" + addr + '\'' +
                '}';
    }
}
